<div ms-controller="user_list">
    <div class="location_box">
        <div class="return_title">
            <a class="return_button" ms-on-click="history"><img src="../img/icon_return.png"/></a>
            <a ms-on-click="load('home_cloud.html')">首页</a>
            <span>&gt;</span>
            <span>人资管理</span>
            <span>&gt;</span>
            <span>用户列表</span>
        </div>
        <div class="button_box">
            <a class="button_add" ms-on-click="goSave" ms-if="sessionStorage.userPower_userAdd==1">添加</a>
        </div>
    </div>
    <div class="clear">
        <div class="button_box"><a class="button_save search_item_button" ms-on-click="page">查询</a></div>
        <div class="condition_box clear">

            <div class="condition_item">
                <label>工号</label>
                <input type="text" class="width_190" ms-duplex="code" placeholder="请输入工号"/>
            </div>
            <div class="condition_item">
                <label>手机号码</label>
                <input type="text" class="width_190" ms-duplex="phone" placeholder="请输入手机号码"/>
            </div>
            <div class="condition_item">
                <label>真实姓名</label>
                <input type="text" class="width_190" ms-duplex="trueName" placeholder="请输入真实姓名"/>
            </div>
            <!--<div class="condition_item">-->
                <!--<label>用户类型</label>-->
                <!--<select ms-duplex="userType">-->
                    <!--<option></option>-->
                    <!--<option value="4">系统管理员</option>-->
                    <!--<option value="1">快递员</option>-->
                    <!--<option value="2">司机</option>-->
                    <!--<option value="3">仓库管理员</option>-->
                <!--</select>-->
            <!--</div>-->
            <div class="condition_item">
                <span class="error_tips"></span>
            </div>
        </div>
    </div>
    <div class="table_content">
        <table ms-controller="paging">
            <thead>
            <tr>
                <td width="5%">序号</td>
                <td width="10%">工号</td>
                <td width="10%">登录名</td>
                <td width="10%">真实姓名</td>
                <td width="15%">用户角色</td>
                <td width="10%">手机号码</td>
                <td width="10%">所属公司</td>
                <td width="10%">所属站点</td>
                <td width="10%">创建时间</td>
                <td width="10%">操作</td>
            </tr>
            </thead>
            <tbody>
            <tr ms-repeat="userList">
                <td>{{pageSize*(pageNum-1)+$index+1}}</td>
                <td>{{el.code}}</td>
                <td>{{el.userName}}</td>
                <td>{{el.trueName}}</td>
                <td>
                    <span ms-repeat="el.roleList">{{el.name}}</span>
                </td>
                <td>{{el.phone}}</td>
                <td>{{el.companyName}}</td>
                <td>{{el.companyPointShortName}}</td>
                <td>{{el.createTime| date("yyyy-MM-dd HH:mm")}}</td>
                <td>
                    <a ms-if="sessionStorage.userPower_userUpdate==1" ms-on-click="goUpdate(el.id)" class="green"><img src="../img/icon_update.png"/>修改</a>
                    <a ms-if="sessionStorage.userPower_userDelete==1" ms-on-click="removeItem(el.id)" class="yellow" style="margin-left: 15px;"><img src="../img/icon_delete.png" />删除</a>
                    <!--<a href="#" class="blue"><img src="../img/icon_detail.png" alt="..."/>详情</a>-->
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
<div ms-include-src="table_footer" class="noSelect"></div>